package com.example.springboot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.springboot.entity.ConsultConfig;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ConsultConfigMapper extends BaseMapper<ConsultConfig> {
    
    @Select("SELECT * FROM consult_config WHERE config_key LIKE #{keyPrefix} || '%'")
    List<ConsultConfig> selectByKeyPrefix(String keyPrefix);
}